<?php
Zend_Loader::loadClass("Application_Page");
Zend_Loader::loadClass("Application_Canvas");
Zend_Loader::loadClass("Application_Menu_RisultatiGrafici");
Zend_Loader::loadClass("Application_Navigation_Postprocessor");

class Application_Page_RisultatiGrafici extends Application_Page
{
	private $_leftCol;
	private $_rightCol;

	protected function _init()
	{
		Zend_Layout::getMvcInstance()->setLayout('liquido2');
		parent::_init();
	}

	public function run()
	{
		// 1. Costruzione del menu di navigazione
		//    Gestione del nodo attivo
		// 2. Costruzione del form
		// 3. ...

		$headNav = new Application_Navigation_Postprocessor();
		$canvas = new Application_Canvas;
		$menuNav = new Application_Menu_RisultatiGrafici();

		$headNav->run();
		$menuNav->run();
		$canvas->run();

		Zend_Layout::getMvcInstance()->topRow = $headNav->render();
		Zend_Layout::getMvcInstance()->leftCol = $menuNav->render();
		Zend_Layout::getMvcInstance()->rightCol = $canvas->render();
	}
}
